<div id="header">
		<div id="topbar">
			<div id="logo">
               <a href="<?php echo $webRoot;?>" ><img src="<?php echo $webRoot?>theme/default/img/logo.png"/></a>
            </div>
			<div id="navbar1">
				<ul>
                 <?php
				  foreach($lang->menu as $menuModule => $menuLabel)
				  {
					  $menuClass = $moduleName == $menuModule ? 'active' : '';
					  echo "<li class='$menuClass'>";
					  if($menuModule=='updateopt')
					     echo html::a($this->createLink($menuModule,'updateopt'), $menuLabel);
					  elseif($menuModule=='sysmanage')
					     echo html::a($this->createLink($menuModule,'userconf'), $menuLabel);
					  elseif($menuModule=='overview')
					     echo html::a($this->createLink($menuModule,'overview'), $menuLabel);
					  echo '</li>';
				  }
				  ?>
              </ul>
			</div>
			<div class="dropdown aim" id="userinfo">
                <a class="dropdown-toggle" href="#">
				   <i class="icon_user user"></i>
				   <span id="user_email"><?php echo $_SESSION['username'];?></span>
                   <!--<i class="versions_icon free"></i>-->
                   <i class="icon_user arrow"></i>
                </a>
                <div id="switch_account" class="dropdown-menu right" style="width:200px;">
					<ul>
						<li class="title"><i class="icon_share_user user"></i>我的登录账户</li>
						<li class="selected">
							<a href="<?php echo $this->createLink('sysmanage','myinfo')?>" >
								<span class="um"><?php echo $_SESSION['username'];?></span>
								<span class="version"></span>
							</a>
						</li>
                    </ul>
				</div>
            </div>
            <div id="top_operate">
				<ul>
                  <!--<li class="dropdown aim" id="__notices">
					 <a class="dropdown-toggle" id="__tips" href="#"><i class="operate_icon site_notice"></i></a>
						<div id="top_msg_alert" class="dropdown-menu right">
							<ul>
								<li>
                                	<b id="__adm_msg_newsum">0</b>条告警通知<a class="look_msg" href="" >查看</a>
                                </li>
								<li>
                                	<b id="__user_notice_num">0</b>条站内通知<a class="look_msg" href="" >查看</a>
                                </li>
								<li class="mes_footer"><a href="javascript:void(0);" onclick="javascript:$('#__notices').removeClass('open');">关闭</a></li>
							</ul>
						</div>
					</li>-->
					<!--<li class="dropdown aim">
						<a class="dropdown-toggle" href="#"><i class="operate_icon help"></i></a>
						<div id="help_center" class="dropdown-menu right">
							<ul>
								<li><a href="" >帮助中心</a></li>
								<li><a href="" >填写反馈</a></li>
								<li><a href="">咨询客服QQ</a></li>
							</ul>
						</div>
					</li>-->
                    <li>
						<a  title="退出" href="<?php echo $this->createLink('index','logout');?>">
                    		<i class="operate_icon exit"></i>
                        </a>
					</li>
				</ul>
			</div>
		</div>
        <div id="navbar2">
			<ul>	
            		
                 <?php
				
				 if($moduleName=='overview'){
					 $menu_arr=$lang->menu_->overview_;
				 }elseif($moduleName=='updateopt')
				      $menu_arr=$lang->menu_->updateopt_;
				 elseif($moduleName=='sysmanage'){
				      $menu_arr=$lang->menu_->sysmanage_;
				 }
				  
				  foreach($menu_arr as $menuSec => $menuLabel)
				  {
					  
					  $menuClass = $methodName == $menuSec ? 'active' : '';
					  if(($methodName=='myinfo')&&$menuSec=='userconf'){
					     $menuClass='active';
					  }elseif(($methodName=='unitconf'||$methodName=='typeconf'||$methodName=='areaconf')&&$menuSec=='areaconf'){
					     $menuClass='active';
					  }elseif(($methodName=='updateopt'||$methodName=='basicconf')&&$menuSec=='updateopt'){
					     $menuClass='active';
					  }
					  echo "<li class='$menuClass'>";
					  echo html::a($this->createLink($moduleName,$menuSec), $menuLabel);
					  echo '</li>';
				  }
				 ?>
		    </ul>
	  </div>
</div>